package org.td.engine.entity;

import java.util.HashMap;
import java.util.Map;

public class ParameterMap {
    
    private Map<String, Object> map;
    
    public ParameterMap() {
        map = new HashMap<String, Object>();
    }
    
    public void putValue(String name, Object value) {
        if (map.get(name) == null) {
            map.put(name, value);
        }
    }
    
    public <T> T getValue(String name, Class<T> type) {
        return (T)map.get(name);
    } 
}
